home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / nmap / nmap.xsl < prev   
Extensible Markup Language  |  2006-06-30  |  22KB  |  660 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- =========================================================================
  3.             nmap.xsl stylesheet version 0.9b
  4.             last change: 2006-03-04
  5.             Benjamin Erb, http://www.benjamin-erb.de
  6. ==============================================================================
  7.     Copyright (c) 2004-2006 Benjamin Erb
  8.     All rights reserved.
  9.  
  10.     Redistribution and use in source and binary forms, with or without
  11.     modification, are permitted provided that the following conditions
  12.     are met:
  13.     1. Redistributions of source code must retain the above copyright
  14.        notice, this list of conditions and the following disclaimer.
  15.     2. Redistributions in binary form must reproduce the above copyright
  16.        notice, this list of conditions and the following disclaimer in the
  17.        documentation and/or other materials provided with the distribution.
  18.     3. The name of the author may not be used to endorse or promote products
  19.        derived from this software without specific prior written permission.
  20.  
  21.     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  22.     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  23.     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  24.     IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  25.     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  26.     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27.     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28.     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29.     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  30.     THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. ========================================================================== -->
  32. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
  33. <xsl:output method="html" indent="yes" encoding="UTF-8" />
  34.  
  35. <!-- global variables      -->
  36. <!-- ............................................................ -->
  37. <xsl:variable name="nmap_xsl_version">0.9b</xsl:variable>
  38. <!-- ............................................................ -->
  39. <xsl:variable name="start"><xsl:value-of select="/nmaprun/@startstr" /></xsl:variable>
  40. <xsl:variable name="end"><xsl:value-of select="/nmaprun/runstats/finished/@timestr" /> </xsl:variable>
  41. <xsl:variable name="totaltime"><xsl:value-of select="/nmaprun/runstats/finished/@time -/nmaprun/@start" /></xsl:variable>
  42. <!-- ............................................................ -->
  43.  
  44.  
  45. <xsl:template match="/">
  46.     <xsl:apply-templates/>
  47. </xsl:template>
  48.  
  49.  
  50. <!-- root -->
  51. <!-- ............................................................ -->
  52. <xsl:template match="/nmaprun">
  53. <html>
  54. <head>
  55.  
  56. <xsl:comment>generated with nmap.xsl - version <xsl:value-of select="$nmap_xsl_version" /> by Benjamin Erb - http://www.benjamin-erb.de/nmap_xsl.php </xsl:comment>
  57.  
  58. <style type="text/css">
  59. /* stylesheet print */
  60. @media print
  61. {
  62.     #menu
  63.     {
  64.         display:none;
  65.     }
  66.  
  67.     h1
  68.     {
  69.         font-size: 13pt;
  70.         font-weight:bold;
  71.         margin:4pt 0pt 0pt 0pt;
  72.         padding:0;
  73.     }
  74.  
  75.     h2
  76.     {
  77.         font-size: 12pt;
  78.         font-weight:bold;
  79.         margin:3pt 0pt 0pt 0pt;
  80.         padding:0;
  81.     }
  82.     h3
  83.     {
  84.         font-size: 9pt;
  85.         font-weight:bold;
  86.         margin:1pt 0pt 0pt 20pt;
  87.         padding:0;
  88.     }
  89.  
  90.     p,ul
  91.     {
  92.         font-size: 9pt;
  93.         margin:1pt 0pt 8pt 40pt;
  94.         padding:0;
  95.         text-align:left;
  96.  
  97.     }
  98.  
  99.     li
  100.     {
  101.         font-size: 9pt;
  102.         margin:0;
  103.         padding:0;
  104.         text-align:left;
  105.  
  106.     }
  107.  
  108.     table
  109.     {
  110.         margin:1pt 0pt 8pt 40pt;
  111.         border:0px;
  112.         width:90%
  113.     }
  114.  
  115.     td
  116.     {
  117.         border:0px;
  118.         border-top:1px solid black;
  119.         font-size: 9pt;
  120.     }
  121.  
  122.     .head td
  123.     {
  124.         border:0px;
  125.         font-weight:bold;
  126.         font-size: 9pt;
  127.     }
  128.  
  129.  
  130. }
  131.  
  132. /* stylesheet screen */
  133. @media screen
  134. {
  135.     body
  136.     {
  137.         margin: 0px;
  138.         background-color: #FFFFFF;
  139.         color: #000000;
  140.         text-align: center;
  141.     }
  142.  
  143.     #container
  144.     {
  145.         text-align:left;
  146.         margin: 10px auto;
  147.         width: 90%;
  148.     }
  149.  
  150.     h1
  151.     {
  152.         font-family: Verdana, Helvetica, sans-serif;
  153.         font-weight:bold;
  154.         font-size: 14pt;
  155.         color: #000000;
  156.         background-color:#87CEFA;
  157.         margin:10px 0px 0px 0px;
  158.         padding:5px 4px 5px 4px;
  159.         width: 100%;
  160.         border:1px solid black;
  161.         text-align: left;
  162.     }
  163.  
  164.     h2
  165.     {
  166.         font-family: Verdana, Helvetica, sans-serif;
  167.         font-weight:bold;
  168.         font-size: 11pt;
  169.         color: #000000;
  170.         margin:30px 0px 0px 0px;
  171.         padding:4px;
  172.         width: 100%;
  173.         border:1px solid black;
  174.         background-color:#F0F8FF;
  175.         text-align: left;
  176.     }
  177.  
  178.     h2.green
  179.     {
  180.         color: #000000;
  181.         background-color:#CCFFCC;
  182.         border-color:#006400;
  183.     }
  184.  
  185.     h2.red
  186.     {
  187.         color: #000000;
  188.         background-color:#FFCCCC;
  189.         border-color:#8B0000;
  190.     }
  191.    
  192.     h3
  193.     {
  194.         font-family: Verdana, Helvetica, sans-serif;
  195.         font-weight:bold;
  196.         font-size: 10pt;
  197.         color:#000000;
  198.         background-color: #FFFFFF;
  199.         width: 75%;
  200.         text-align: left;
  201.     }
  202.  
  203.     p
  204.     {
  205.         font-family: Verdana, Helvetica, sans-serif;
  206.         font-size: 8pt;
  207.         color:#000000;
  208.         background-color: #FFFFFF;
  209.         width: 75%;
  210.         text-align: left;
  211.     }
  212.  
  213.     p i
  214.     {
  215.         font-family: "Courier New", Courier, mono;
  216.         font-size: 8pt;
  217.         color:#000000;
  218.         background-color: #CCCCCC;
  219.     }
  220.  
  221.     ul
  222.     {
  223.         font-family: Verdana, Helvetica, sans-serif;
  224.         font-size: 8pt;
  225.         color:#000000;
  226.         background-color: #FFFFFF;
  227.         width: 75%;
  228.         text-align: left;
  229.     }
  230.  
  231.     a
  232.     {
  233.         font-family: Verdana, Helvetica, sans-serif;
  234.         text-decoration: none;
  235.         font-size: 8pt;
  236.         color:#000000;
  237.         font-weight:bold;
  238.         background-color: #FFFFFF;
  239.         color: #000000;
  240.     }
  241.  
  242.     li a
  243.     {
  244.         font-family: Verdana, Helvetica, sans-serif;
  245.         text-decoration: none;
  246.         font-size: 10pt;
  247.         color:#000000;
  248.         font-weight:bold;
  249.         background-color: #FFFFFF;
  250.         color: #000000;
  251.     }
  252.  
  253.     a:hover
  254.     {
  255.         text-decoration: underline;
  256.     }
  257.  
  258.     a.red
  259.     {
  260.         color:#8B0000;
  261.     }
  262.     a.green
  263.     {
  264.         color:#006400;
  265.     }
  266.  
  267.     table
  268.     {
  269.         width: 80%;
  270.         border:0px;
  271.         color: #000000;
  272.         background-color: #000000;
  273.         margin:10px;
  274.     }
  275.  
  276.     tr
  277.     {
  278.         vertical-align:top;
  279.         font-family: Verdana, Helvetica, sans-serif;
  280.         font-size: 8pt;
  281.         color:#000000;
  282.         background-color: #D1D1D1;
  283.     }
  284.  
  285.     tr.head
  286.     {
  287.         background-color: #E1E1E1;
  288.         color: #000000;
  289.         font-weight:bold;
  290.     }
  291.  
  292.     tr.open
  293.     {
  294.         background-color: #CCFFCC;
  295.         color: #000000;
  296.     }
  297.  
  298.     tr.filtered
  299.     {
  300.         background-color: #FFDDBB;
  301.         color: #000000;
  302.     }
  303.  
  304.     tr.closed
  305.     {
  306.         background-color: #FFAFAF;
  307.         color: #000000;
  308.     }
  309.     
  310.     td
  311.     {
  312.         padding:2px;
  313.     }
  314.     
  315.     .status
  316.     {
  317.         display:none;
  318.     }
  319.     
  320.     #menu li
  321.     {
  322.         display         : inline;
  323.         margin          : 0;
  324.         /*margin-right    : 10px;*/
  325.         padding         : 0;
  326.         list-style-type : none;
  327.     }    
  328. }
  329. </style>
  330.     <title>nmap report</title>
  331. </head>
  332.  
  333. <body>
  334.     <div id="container">
  335.     <h1>nmap scan report - scan @ <xsl:value-of select="$start" />
  336.     </h1>
  337.     
  338.     <ul id="menu">
  339.         <li><a href="#scansummary">scan summary</a><xsl:text> | </xsl:text></li>
  340.         <li><a href="#scaninfo">scan info</a><xsl:text> | </xsl:text></li>
  341.  
  342.           <xsl:for-each select="host">
  343.               <xsl:sort select="substring ( address/@addr, 1, string-length ( substring-before ( address/@addr, '.' ) ) )* (256*256*256) + substring ( substring-after ( address/@addr, '.' ), 1, string-length ( substring-before ( substring-after ( address/@addr, '.' ), '.' ) ) )* (256*256) + substring ( substring-after ( substring-after ( address/@addr, '.' ), '.' ), 1, string-length ( substring-before ( substring-after ( substring-after ( address/@addr, '.' ), '.' ), '.' ) ) ) * 256 + substring ( substring-after ( substring-after ( substring-after ( address/@addr, '.' ), '.' ), '.' ), 1 )" order="ascending" data-type="number"/>
  344.               <li>
  345.                 <xsl:element name="a">
  346.                     <xsl:attribute name="href">#<xsl:value-of select="translate(address/@addr, '.', '_') " /></xsl:attribute>
  347.                     <xsl:attribute name="class">
  348.                     <xsl:choose>
  349.                         <xsl:when test="status/@state = 'up'">green</xsl:when>
  350.                         <xsl:otherwise>red</xsl:otherwise>                    
  351.                     </xsl:choose>
  352.                     </xsl:attribute>
  353.                     <xsl:value-of select="address/@addr"/>
  354.                     <xsl:if test="count(hostnames/hostname) > 0">
  355.                       <xsl:for-each select="hostnames/hostname">
  356.                         <xsl:sort select="@name" order="ascending" data-type="text"/>
  357.                         <xsl:text> / </xsl:text><xsl:value-of select="@name"/>
  358.                       </xsl:for-each>                          
  359.                     </xsl:if>                                
  360.                 </xsl:element>
  361.                <xsl:text> | </xsl:text></li>
  362.           </xsl:for-each>
  363.  
  364.         <li><a href="#runstats">runstats</a></li>
  365.     </ul>
  366.   
  367.     <xsl:element name="a">
  368.         <xsl:attribute name="name">scansummary</xsl:attribute>
  369.     </xsl:element>
  370.     <h2>scan summary</h2>
  371.     <p>
  372.     <xsl:value-of select="@scanner"/> was initiated at <xsl:value-of select="$start" /> with these arguments:<br/>
  373.     <i><xsl:value-of select="@args" /></i><br/>
  374.     The process stopped at <xsl:value-of select="$end" />.
  375.     <xsl:choose>
  376.         <xsl:when test="debugging/@level = '0'">Debuging was disabled, </xsl:when>
  377.         <xsl:otherwise>Debugging was enabeld, </xsl:otherwise>
  378.     </xsl:choose>
  379.     the verbosity level was <xsl:value-of select="verbose/@level" />.
  380.  
  381.     </p>
  382.     <xsl:apply-templates select="host">
  383.         <xsl:sort select="substring ( address/@addr, 1, string-length ( substring-before ( address/@addr, '.' ) ) )* (256*256*256) + substring ( substring-after ( address/@addr, '.' ), 1, string-length ( substring-before ( substring-after ( address/@addr, '.' ), '.' ) ) )* (256*256) + substring ( substring-after ( substring-after ( address/@addr, '.' ), '.' ), 1, string-length ( substring-before ( substring-after ( substring-after ( address/@addr, '.' ), '.' ), '.' ) ) ) * 256 + substring ( substring-after ( substring-after ( substring-after ( address/@addr, '.' ), '.' ), '.' ), 1 )" order="ascending" data-type="number"/>
  384.     </xsl:apply-templates>    
  385.     <xsl:apply-templates select="runstats"/>
  386.     </div>
  387.     
  388. </body>
  389. </html>
  390. </xsl:template>
  391. <!-- ............................................................ -->
  392.  
  393. <!-- scaninfo -->
  394. <!-- ............................................................ -->
  395. <xsl:template match="scaninfo">
  396.     <xsl:element name="a">
  397.         <xsl:attribute name="name">scaninfo</xsl:attribute>
  398.     </xsl:element>
  399.  
  400.     <h2>scan info</h2>
  401.     <ul>
  402.         <li><xsl:value-of select="@type" />-scan</li>
  403.         <li><xsl:value-of select="@numservices" /><xsl:text> </xsl:text><xsl:value-of select="@protocol" /> services scanned</li>
  404.     </ul>
  405.     <xsl:apply-templates/>
  406. </xsl:template>
  407. <!-- ............................................................ -->
  408.  
  409. <!-- runstats -->
  410. <!-- ............................................................ -->
  411. <xsl:template match="runstats">
  412.     <xsl:element name="a">
  413.         <xsl:attribute name="name">runstats</xsl:attribute>
  414.     </xsl:element>
  415.  
  416.     <h2>runstats</h2>
  417.     <ul>
  418.         <li><xsl:value-of select="$totaltime" /> sec. scanned</li>
  419.         <li><xsl:value-of select="hosts/@total" /> host(s) scanned</li>
  420.         <li><xsl:value-of select="hosts/@up" /> host(s) online</li>
  421.         <li><xsl:value-of select="hosts/@down" /> host(s) offline</li>
  422.     </ul>
  423.     <ul>
  424.         <li>nmap version: <xsl:value-of select="/nmaprun/@version" /></li>
  425.         <li>xml output version: <xsl:value-of select="/nmaprun/@xmloutputversion" /></li>
  426.         <li>nmap.xsl version: <xsl:value-of select="$nmap_xsl_version" /></li>
  427.     </ul>
  428.     <xsl:apply-templates/>
  429. </xsl:template>
  430. <!-- ............................................................ -->
  431.  
  432. <!-- host -->
  433. <!-- ............................................................ -->
  434. <xsl:template match="host">
  435.     <xsl:element name="a">
  436.         <xsl:attribute name="name"><xsl:value-of select="translate(address/@addr, '.', '_') " /></xsl:attribute>
  437.     </xsl:element>
  438.  
  439.     <xsl:choose>
  440.         <xsl:when test="status/@state = 'up'">
  441.             <h2 class="green"><xsl:value-of select="address/@addr"/>
  442.             <xsl:if test="count(hostnames/hostname) > 0">
  443.               <xsl:for-each select="hostnames/hostname">
  444.                 <xsl:sort select="@name" order="ascending" data-type="text"/>
  445.                 <xsl:text> / </xsl:text><xsl:value-of select="@name"/>
  446.               </xsl:for-each>                          
  447.             </xsl:if>
  448.             <span class="status">(online)</span>
  449.             </h2>
  450.         </xsl:when>
  451.         <xsl:otherwise>
  452.             <h2 class="red"><xsl:value-of select="address/@addr"/>
  453.             <xsl:if test="count(hostnames/hostname) > 0">
  454.               <xsl:for-each select="hostnames/hostname">
  455.                 <xsl:sort select="@name" order="ascending" data-type="text"/>
  456.                 <xsl:text> / </xsl:text><xsl:value-of select="@name"/>
  457.               </xsl:for-each>            
  458.             </xsl:if>             
  459.             <span class="status">(offline)</span></h2>
  460.         </xsl:otherwise>
  461.     </xsl:choose>
  462.  
  463.     <xsl:if test="count(address) > 0">    
  464.         <h3>address</h3>
  465.         <ul>
  466.             <xsl:for-each select="address">
  467.                 <li><xsl:value-of select="@addr"/> (<xsl:value-of select="@addrtype"/>)</li>                
  468.             </xsl:for-each>
  469.         </ul>
  470.     </xsl:if>
  471.     
  472.     <xsl:apply-templates/>
  473.  
  474. </xsl:template>
  475. <!-- ............................................................ -->
  476.  
  477.  
  478.  
  479. <!-- hostnames -->
  480. <!-- ............................................................ -->
  481. <xsl:template match="hostnames">
  482. <xsl:if test="hostname/@name != ''"><h3>hostnames</h3><ul>    <xsl:apply-templates/></ul></xsl:if>
  483. </xsl:template>
  484. <!-- ............................................................ -->
  485.  
  486. <!-- hostname -->
  487. <!-- ............................................................ -->
  488. <xsl:template match="hostname">
  489. <li><xsl:value-of select="@name"/> (<xsl:value-of select="@type"/>)</li>
  490. </xsl:template>
  491. <!-- ............................................................ -->
  492.  
  493. <!-- ports -->
  494. <!-- ............................................................ -->
  495. <xsl:template match="ports">
  496. <h3>ports</h3>
  497. <xsl:for-each select="extraports">
  498.     <xsl:if test="@count > 0">
  499.         <p>The <xsl:value-of select="@count" /> ports scanned but not shown below are in state: <b><xsl:value-of select="@state" /></b></p>
  500.     </xsl:if>
  501. </xsl:for-each>
  502.  
  503. <xsl:if test="count(port) > 0">
  504.     <table cellspacing="1">
  505.     <tr class="head">
  506.         <td colspan="2">Port</td>
  507.         <td>State</td>
  508.         <td>Service</td>
  509.         <td>Product</td>
  510.         <td>Version</td>
  511.         <td>Extra info</td>
  512.     </tr>
  513.     <xsl:apply-templates/>
  514.     </table>
  515. </xsl:if>    
  516. </xsl:template>
  517. <!-- ............................................................ -->
  518.  
  519. <!-- port -->
  520. <!-- ............................................................ -->
  521. <xsl:template match="port">
  522.     <xsl:choose>
  523.         <xsl:when test="state/@state = 'open'">
  524.             <tr class="open">
  525.                 <td><xsl:value-of select="@portid" /></td>
  526.                 <td><xsl:value-of select="@protocol" /></td>
  527.                 <td><xsl:value-of select="state/@state" /></td>
  528.                 <td><xsl:value-of select="service/@name" /><xsl:text> </xsl:text></td>
  529.                 <td><xsl:value-of select="service/@product" /><xsl:text> </xsl:text></td>
  530.                 <td><xsl:value-of select="service/@version" /><xsl:text> </xsl:text></td>
  531.                 <td><xsl:value-of select="service/@extrainfo" /><xsl:text> </xsl:text></td>
  532.             </tr>
  533.         </xsl:when>
  534.         <xsl:when test="state/@state = 'filtered'">
  535.             <tr class="filtered">
  536.                 <td><xsl:value-of select="@portid" /></td>
  537.                 <td><xsl:value-of select="@protocol" /></td>
  538.                 <td><xsl:value-of select="state/@state" /></td>
  539.                 <td><xsl:value-of select="service/@name" /><xsl:text> </xsl:text></td>
  540.                 <td><xsl:value-of select="service/@product" /><xsl:text> </xsl:text></td>
  541.                 <td><xsl:value-of select="service/@version" /><xsl:text> </xsl:text></td>
  542.                 <td><xsl:value-of select="service/@extrainfo" /><xsl:text> </xsl:text></td>
  543.             </tr>
  544.         </xsl:when>
  545.         <xsl:when test="state/@state = 'closed'">
  546.             <tr class="closed">
  547.                 <td><xsl:value-of select="@portid" /></td>
  548.                 <td><xsl:value-of select="@protocol" /></td>
  549.                 <td><xsl:value-of select="state/@state" /></td>
  550.                 <td><xsl:value-of select="service/@name" /><xsl:text> </xsl:text></td>
  551.                 <td><xsl:value-of select="service/@product" /><xsl:text> </xsl:text></td>
  552.                 <td><xsl:value-of select="service/@version" /><xsl:text> </xsl:text></td>
  553.                 <td><xsl:value-of select="service/@extrainfo" /><xsl:text> </xsl:text></td>
  554.             </tr>
  555.         </xsl:when>
  556.         <xsl:otherwise>
  557.             <tr>
  558.                 <td><xsl:value-of select="@portid" /></td>
  559.                 <td><xsl:value-of select="@protocol" /></td>
  560.                 <td><xsl:value-of select="state/@state" /></td>
  561.                 <td><xsl:value-of select="service/@name" /><xsl:text> </xsl:text></td>
  562.                 <td><xsl:value-of select="service/@product" /><xsl:text> </xsl:text></td>
  563.                 <td><xsl:value-of select="service/@version" /><xsl:text> </xsl:text></td>
  564.                 <td><xsl:value-of select="service/@extrainfo" /><xsl:text> </xsl:text></td>
  565.             </tr>
  566.         </xsl:otherwise>
  567.     </xsl:choose>
  568. </xsl:template>
  569. <!-- ............................................................ -->
  570.  
  571. <!-- os -->
  572. <!-- ............................................................ -->
  573. <xsl:template match="os">
  574. <xsl:if test="osmatch/@name != ''"><h3>remote operating system guess</h3></xsl:if>
  575. <ul>
  576.     <xsl:apply-templates/>
  577. </ul>
  578. </xsl:template>
  579. <!-- ............................................................ -->
  580.  
  581. <!-- os portused -->
  582. <!-- ............................................................ -->
  583. <xsl:template match="portused">
  584. <li>used port <xsl:value-of select="@portid" />/<xsl:value-of select="@proto" /> (<xsl:value-of select="@state" />)  </li>
  585. </xsl:template>
  586. <!-- ............................................................ -->
  587.  
  588. <!-- os match -->
  589. <!-- ............................................................ -->
  590. <xsl:template match="osmatch">
  591. <li>os match: <b><xsl:value-of select="@name" /> </b></li>
  592. <li>accuracy: <xsl:value-of select="@accuracy" />%</li>
  593. <li>reference fingerprint line number: <xsl:value-of select="@line" /></li>
  594. </xsl:template>
  595. <!-- ............................................................ -->
  596.  
  597. <!-- uptime -->
  598. <!-- ............................................................ -->
  599. <xsl:template match="uptime">
  600. <xsl:if test="@seconds != ''"><h3>system uptime</h3></xsl:if>
  601. <ul>
  602. <li>uptime: <xsl:value-of select="@seconds" /> sec</li>
  603. <li>last reboot: <xsl:value-of select="@lastboot" /></li>
  604. </ul>
  605. </xsl:template>
  606. <!-- ............................................................ -->
  607.  
  608. <!-- smurf -->
  609. <!-- ............................................................ -->
  610. <xsl:template match="smurf">
  611. <xsl:if test="@responses != ''"><h3>smurf responses</h3></xsl:if>
  612. <ul>
  613. <li><xsl:value-of select="@responses" /> responses counted</li>
  614. </ul>
  615. </xsl:template>
  616. <!-- ............................................................ -->
  617.  
  618. <!-- tcpsequence -->
  619. <!-- ............................................................ -->
  620. <xsl:template match="tcpsequence">
  621. <xsl:if test="@values != ''">
  622.     <h3>tcpsequence</h3>
  623.     <ul>
  624.         <li>index: <xsl:value-of select="@index" /></li>
  625.         <li>class: <xsl:value-of select="@class" /></li>
  626.         <li>difficulty: <xsl:value-of select="@difficulty" /></li>
  627.         <li>values: <xsl:value-of select="@values" /></li>
  628.     </ul>
  629. </xsl:if>
  630. </xsl:template>
  631. <!-- ............................................................ -->
  632.  
  633. <!-- ipidsequence -->
  634. <!-- ............................................................ -->
  635. <xsl:template match="ipidsequence">
  636. <xsl:if test="@values != ''">
  637.     <h3>ipidsequence</h3>
  638.     <ul>
  639.         <li>class: <xsl:value-of select="@class" /></li>
  640.         <li>values: <xsl:value-of select="@values" /></li>
  641.     </ul>
  642. </xsl:if>
  643. </xsl:template>
  644. <!-- ............................................................ -->
  645.  
  646. <!-- tcptssequence -->
  647. <!-- ............................................................ -->
  648. <xsl:template match="tcptssequence">
  649. <xsl:if test="@values != ''">
  650.     <h3>tcptssequence</h3>
  651.     <ul>
  652.         <li>class: <xsl:value-of select="@class" /></li>
  653.         <li>values: <xsl:value-of select="@values" /></li>
  654.     </ul>
  655. </xsl:if>
  656. </xsl:template>
  657. <!-- ............................................................ -->
  658.  
  659. </xsl:stylesheet>
  660.